package me.jiatao.usercenter.injection.module

import dagger.Module
import dagger.Provides
import me.jiatao.baselibrary.injection.scope.PerComponentScope
import me.jiatao.usercenter.mvp.service.UserService
import me.jiatao.usercenter.mvp.service.impl.UserServiceImpl

/**
 * 用户模块Module
 */
@Module
class UserModule {

    /**
     * 提供UserServiceImpl实例
     * 需要@Inject注入
     */
    @PerComponentScope
    @Provides
    fun provideUserService(userService: UserServiceImpl): UserService {
        return userService
    }

}

